package com.dbsop.domain.rest;


import com.dbsop.domain.EsCondition;
import com.dbsop.domain.EsConditionGtRange;
import com.dbsop.domain.rest.query.RestLtRangeQuery;

/**
 * Es条件查询 子查询
 */
public class EsRestConditionGtRange extends EsConditionGtRange {

    private EsRestCondition esRestCondition;

    private RestLtRangeQuery ltRangeQuery;

    public EsRestConditionGtRange(EsRestCondition esRestCondition, RestLtRangeQuery ltRangeQuery) {
        this.esRestCondition = esRestCondition;
        this.ltRangeQuery = ltRangeQuery;
    }

    @Override
    public EsCondition gt(Object value) {
         ltRangeQuery.gt(value);
        return esRestCondition;
    }

    @Override
    public EsCondition gte(Object value) {
        ltRangeQuery.gte(value);
        return esRestCondition;
    }

}
